Welcome![Sign In][Sign Up]
Location:
Search - Linux ioctl

Search list

[Linux-UnixLinux声音设备编程实例

Description: Linux下的声音设备编程比大多数人想象的要简单得多。一般说来,我们常用的声音设备是内部扬声器和声卡,它们都对应/dev目录下的一个或多个设备文件,我们象打开普通文件一样打开它们,用ioctl()函数设置一些参数,然后对这些打开的特殊文件进写操作。-Linux Generally speaking, we used the voices of internal equipment and audio speakers, which corresponds to / dev directory of one or more equipment, we like to open the file as they opened with ioctl () function set some parameters, then open these documents into the special write .
Platform: | Size: 8060 | Author: 飞杨 | Hits:

[Linux-UnixLinux声音设备编程实例

Description: Linux下的声音设备编程比大多数人想象的要简单得多。一般说来,我们常用的声音设备是内部扬声器和声卡,它们都对应/dev目录下的一个或多个设备文件,我们象打开普通文件一样打开它们,用ioctl()函数设置一些参数,然后对这些打开的特殊文件进写操作。-Linux Generally speaking, we used the voices of internal equipment and audio speakers, which corresponds to/dev directory of one or more equipment, we like to open the file as they opened with ioctl () function set some parameters, then open these documents into the special write .
Platform: | Size: 8192 | Author: 飞杨 | Hits:

[Linux-UnixGuiCamera

Description: 用的是ov的摄像头,在用xawtv打开时,可以看到捕获的画面还算流畅. 自己改编了一个video4linux的程序,但是效率很低 从ioctl (dev, VIDIOCMCAPTURE, &vid_mmap) 到ioctl (dev, VIDIOCSYNC, &vid_mmap.frame) 程序运行一共用了0.25s左右-use the ov cameras, on the xawtv opened, can see the screen capture fairly fluent. their adaptation of a video4linux procedures, However, the low efficiency from the ioctl (dev, VIDIOCMCAPTURE.
Platform: | Size: 1024 | Author: 1212 | Hits:

[Software EngineeringLINUX_DRVER

Description: 1、linux下8019的移植 2、LINUX USB 3、write,ioctl,select-1, 8019 under linux transplant two, three USB LINUX, write, ioctl, select
Platform: | Size: 829440 | Author: Cecil | Hits:

[Embeded Linuxled_linux2.4.18

Description: Linux 2.4.18 s3c2440 led driver 使用dev-C++撰寫,需要linux 2.4.18 kernel include,編譯完成後產生led module。 insmod main.o //安裝模組 mknod /dev/leds c 221 0 使用方法: int main(int argc, char *argv[]) { int testdev //led test... testdev = open("/dev/QuickMarkLed",O_RDWR) ioctl(testdev, 2, 1) //ioctl(device, led number, open/close) open=1 ioctl(testdev, argv[1][0]- 0 , argv[2][0]- 0 ) //ioctl(device, led number, open/close) open=1 close(testdev) return 0 } -Linux 2.4.18 s3c2440 led driver to use dev-C++ Writing, the need for linux 2.4.18 kernel include, compiled after the completion of led module. insmod main.o// install the module mknod/dev/leds c 221 0 to use: int main (int argc, char* argv []) (int testdev// led test ... testdev = open (/ dev/QuickMarkLed , O_RDWR) ioctl (testdev, 2, 1)// ioctl (device, led number, open/close) open = 1 ioctl (testdev, argv [1] [0]- 0, argv [2] [0]- 0 )// ioctl (device, led number, open/close) open = 1 close (testdev) return 0)
Platform: | Size: 5120 | Author: Jia-Yang Chen | Hits:

[Linux-Unixkey

Description: linux/kd.h文件中介绍了ioctl函数能够使用的命令,该文件中包含了各种命令的使用例子-linux/kd.h document introduced the ioctl function to use the command, the document contains examples of the use of a variety of command
Platform: | Size: 28672 | Author: 董浩然 | Hits:

[Linux-Unixframebuffer

Description: 帧缓冲#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <asm/page.h> #include <linux/fb.h> #define TRUE 1 #define FALSE 2 //a framebuffer device structure typedef struct fbdev{ int fb unsigned long fb_mem_offset unsigned long fb_mem struct fb_fix_screeninfo fb_fix -Frame buffer# Include <stdio.h># Include <stdlib.h># Include <string.h># Include <stdint.h># Include <unistd.h># Include <fcntl.h># include <sys/ioctl.h># include <sys/mman.h># include <asm/page.h># include <linux/fb.h># define TRUE 1# define FALSE 2// a framebuffer device structure typedef struct fbdev (int fb unsigned long fb_mem_offset unsigned long fb_mem struct fb_fix_screeninfo fb_fix
Platform: | Size: 1024 | Author: hjintian | Hits:

[Linux-Unixffaudio.tar

Description: Linux OSS声卡驱动测试程序,支持播放,录制,支持多种速率,多种格式,以及通道。如有其他特殊需要,只需添加ioctl接口即可。 本程序在Linux 2.6.20下测试通过,并可方便地移植到MIPS/ARM架构CPU上。-Linux OSS sound drivers test procedures in support of broadcast, recording, supports a wide range of rates, a variety of formats, as well as the channel. If there are other special needs, simply add the ioctl interface to. This procedure to test the adoption of Linux 2.6.20, and easily ported to MIPS/ARM architecture CPU on.
Platform: | Size: 2048 | Author: H Simon | Hits:

[Linux-UnixLinuxdevicedriveradvancedchardeivice

Description: Linux设备驱动程序学习(4)-高级字符驱动程序操作[(1)ioctl and llseek] - Linux设备驱动程序.rar-Linux设备驱动程序学习(4)-高级字符驱动程序操作[(1)ioctl and llseek]- Linux设备驱动程序.rar
Platform: | Size: 55296 | Author: zwx | Hits:

[Linux-Unixtest_netfilter

Description: IOCTL的示例程序,已在mips-linux-gcc环境中调试通过-IOCTL example procedures in mips-linux-gcc debug environment through
Platform: | Size: 1024 | Author: xyx | Hits:

[Linux-Unixpci

Description: Linux PCI driver skeleton sample code
Platform: | Size: 1024 | Author: B.J. | Hits:

[Linux-Unixlibv4l-0.6.2-test.tar

Description: 最新的测试版:一个可用于编写v4l2 camera应用程序的库libv4l,里面除有常用的v4l2 ioctl调用的封装API外,还有yuv到rgb转换、rgb到yuv转换和jpeg decoder API。-The latest test version of: an application for writing v4l2 camera library libv4l, which are commonly used in addition to the package v4l2 ioctl API calls, there yuv to rgb converter, rgb to yuv conversion and jpeg decoder API.
Platform: | Size: 129024 | Author: 碧海 | Hits:

[Internet-Networkioctl

Description: THIS THE SKELETON CODE FOR KERNEL TIMER IN LINUX-THIS IS THE SKELETON CODE FOR KERNEL TIMER IN LINUX
Platform: | Size: 16384 | Author: aliakbar | Hits:

[Linux-Unixioctl

Description: IOCTL初始化,linux底层文件,为头文件-IOCTL initialization, linux underlying documents, the header file
Platform: | Size: 1024 | Author: 工大 | Hits:

[Embeded Linuxfb.tar

Description: 利用mmap在frambuffer中画点,划线,图形,ioctl功能实现-Using mmap in frambuffer in drawing point dash, graphics, ioctl function realization
Platform: | Size: 1024 | Author: szw | Hits:

[Linux-UnixLinux-driver-development13

Description: 作者:华清远见嵌入式学院。《Linux设备驱动开发详解》(08&09年度畅销榜TOP50)第13章、Linux块设备驱动。块设备是与字符设备并列的概念,这两类设备在Linux中驱动的结构有较大差异,总体而言,块设备驱动比字符设备驱动要复杂得多,在I/O操作上表现出极大的不同,缓冲、I/O调度、请求队列等都是与块设备驱动相关的概念。本章将详细讲解Linux块设备驱动的编程方法。13.1节讲解块设备I/O操作的特点,分析字符设备与块设备在I/O操作上的差异。13.2节从整体上描述Linux块设备驱动的结构,分析主要的数据结构、函数及其关系。13.3~13.5节分别讲解块设备驱动模块加载与卸载、打开与释放和ioctl()函数。13.6节非常重要,讲述了块设备I/O操作所依赖的请求队列的概念及用法。13.2节与13.3~13.6节是整体与部分的关系,13.2~13.6节与13.7节是迭代递进的关系。13.7节在13.1~13.6节讲解内容的基础上,总结Linux下块设备的读写流程,而13.7节则讲解了块设备驱动的具体实例,即RamDisk的驱动。-Author: HuaQing vision embedded institute. The Linux device driver development "(08 and 09 sep TOP50) annual list of best-selling chapter 13, Linux piece of device drivers. Piece of equipment is the concept of equipment and characters are, these two types of equipment in the structure of the drive in Linux have bigger difference, overall, piece of equipment than character device drivers drive is much more complex, in the I/O operation borrows great different, buffer, I/O operation, request queuing is of the device driver related concepts. This chapter will be explained Linux piece of equipment of the driver programming. Section 13.1 explain piece of equipment I/O operation, the characteristics of the character device and piece of equipment analysis in the I/O operation differences. Section 13.2 from the whole description of Linux device drivers, analysis of the main structure of the data structure, function and its relationship. 13.3 ~ 13.5 respectively of asher. Explain
Platform: | Size: 645120 | Author: 华清远见 | Hits:

[Embeded LinuxSCULL

Description: linux下简单的设备驱动程序,实现了读写、定位文件指针、ioctl清零以及简单的读写控制。-the simple linux device driver, to achieve the reading and writing, positioning the file pointer, ioctl clear and simple to read and write control.
Platform: | Size: 143360 | Author: 汪荔枝 | Hits:

[Linux-Unixlinux-ioctl.doc

Description: 本文结合实例详细介绍了通过ioctl()函数对网卡等各种参数进行读写控制等操作。-In this paper, the instance described in detail by ioctl () function to read and write control the various parameters of network cards and other operations.
Platform: | Size: 11264 | Author: 张元 | Hits:

[Linux-Unixled-test

Description: 6410 led测试 include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <linux/ioctl.h> /* 瀹氫箟骞绘暟 */ #define MEMDEV_IOC_MAGIC k -include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <linux/ioctl.h> /* 瀹氫箟骞绘暟*/ #define MEMDEV_IOC_MAGIC k
Platform: | Size: 3072 | Author: xiankongyijue | Hits:

[Driver Developlinux-module

Description: Linux设备驱动标准模板,用于s3c2410实验,流水灯点亮,下面有配套应用程序内核版本:2.6.31 交叉编译器:arm-linux-gcc 4.12 Read,write,ioctl等函数实现 S3C2410 GPF0~GPF3外接led灯,低电平点亮,高电平熄灭分别用write和ioctl 实现led流水灯的点亮经过验证,可点亮led流水灯-linux module
Platform: | Size: 25600 | Author: 王子丹 | Hits:
« 12 3 4 »

CodeBus www.codebus.net